<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="../header.tag" %>

<!--login-form-->
<div id="quickLoginForm" class="login-form simple-form">

	<strong class="title">Войти</strong>
	
	<%-- <tags:facebook loginType="${loginType}" label="Войти через Facebook"  divCssClass="alt-login"/>--%>

	<span class="alt-title">или</span>

	<form:form id="loginForm" acceptCharset="UTF-8" modelAttribute="registration">
	
		<span class="form-field">
			<label class="label" for="${loginEmail}">Эл. почта</label>
			<input class="input-text" type="text" id="${loginEmail}" autocomplete="off"/>
		</span>
		<span id="${loginEmailErrorMessageSpanId}" class="error-msg"></span>
		
		<span class="form-field">
			<label class="label" for="${loginPass}">Пароль</label>
			<input id="${loginPass}" class="input-text" type="password" value="" />
		</span>
		<span id="${badCredentialsErrorMessageSpanId}" class="error-msg"></span>
		
		<span class="form-button">
			<input class="input-submit as-button dark-button" type="button" onclick="login('${loginUrl}', '${loginEmail}', '${loginPass}', '${loginEmailErrorMessageSpanId}', '${badCredentialsErrorMessageSpanId}', '${loginType}');" value="Войти" />
		</span>
		
		<p class="help-line">
			<a href="#" class="help-link" onclick="toggle('${divId}'); return false;">Забыли пароль?</a>
		</p>
		
		<input id="itemId" type="hidden"/>
		
	</form:form>

</div>
<!--/login-form-->
